package com.customer.crm.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.customer.crm.system.pojo.Task;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * The interface Task service.
 * @author lyp
 */
@Service
public interface TaskService extends IService<Task> {
    /**
     * Find all task list.
     *
     * @param page   the page
     * @param rows   the rows
     * @param taskId the task id
     * @return the list
     */
    List<Task> findAllTask(Long page, Long rows , Integer taskId);

    /**
     * Find my task list.
     *
     * @param systemUsername the system username
     * @return the list
     */
    List<Task> findMyTask(String systemUsername);

    /**
     * My distribute task list.
     *
     * @param systemUsername the system username
     * @return the list
     */
    List<Task> myDistributeTask( String systemUsername);

    /**
     * End today list.
     *
     * @return the list
     */
    List<Task> endToday();


    /**
     * End week list.
     *
     * @return the list
     */
    List<Task> endWeek();

    /**
     * End month list.
     *
     * @return the list
     */
    List<Task> endMonth();
}
